package com.oromwin.repos.data;

import com.oromwin.repos.common.Common.Status;

public class VolumeTable extends AbstractReposTable {
    private String VolumeId = null;
    private String VolumeName = null;
    private Status VolumeStatus = Status.CREATE;
    private String CreateDate = null;
    private String UpdateDate = null;
    public VolumeTable() {
    }
    public VolumeTable(String volumeId, String volumeName, Status volumeStatus, String createDate, String updateDate) {
        VolumeId = volumeId;
        VolumeName = volumeName;
        VolumeStatus = volumeStatus;
        CreateDate = createDate;
        UpdateDate = updateDate;
    }
    public String getVolumeId() {
        return VolumeId;
    }
    public void setVolumeId(String volumeId) {
        this.VolumeId = volumeId;
    }
    public String getVolumeName() {
        return VolumeName;
    }
    public void setVolumeName(String volumeName) {
        this.VolumeName = volumeName;
    }
    public Integer getVolumeStatus() {
        return VolumeStatus.ordinal();
    }
    public void setVolumeStatus(Integer volumeStatus) {
        this.VolumeStatus = Status.values()[volumeStatus];
    }
    public String getCreateDate() {
        return CreateDate;
    }
    public void setCreateDate(String createDate) {
        this.CreateDate = createDate;
    }
    public String getUpdateDate() {
        return UpdateDate;
    }
    public void setUpdateDate(String updateDate) {
        this.UpdateDate = updateDate;
    }
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append(String.format("VolumeId/\t%s\n", VolumeId));
        sb.append(String.format("VolumeName/\t%s\n", VolumeName));
        sb.append(String.format("VolumeStatus/\t%s\n", VolumeStatus.toString()));
        sb.append(String.format("CreateDate/\t%s\n", CreateDate.toString()));
        sb.append(String.format("UpdateDate/\t%s\n", UpdateDate.toString()));
        return sb.toString();
    }
}
